<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group hide">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Realname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-realname" class="form-control" name="row[realname]" type="text" value="{$row.realname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('性别')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[gender]', ['0'=>'男', '1'=>'女'], $row.gender, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-idcard_number" class="form-control" name="row[idcard_number]" type="text" value="{$row.idcard_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_a')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-idcard_a" data-rule="" class="form-control" size="50" name="row[idcard_a]" type="text" value="{$row.idcard_a}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-idcard_a" class="btn btn-danger faupload" data-input-id="c-idcard_a" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-idcard_a"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-idcard_a" class="btn btn-primary fachoose" data-input-id="c-idcard_a" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-idcard_a"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-idcard_a"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_b')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-idcard_b" data-rule="" class="form-control" size="50" name="row[idcard_b]" type="text" value="{$row.idcard_b}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-idcard_b" class="btn btn-danger faupload" data-input-id="c-idcard_b" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-idcard_b"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-idcard_b" class="btn btn-primary fachoose" data-input-id="c-idcard_b" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-idcard_b"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-idcard_b"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-age" class="form-control" name="row[age]" type="number" value="{$row.age|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Forte')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-forte" data-rule="required" data-multiple="true" data-source="steward/selectforte"
                   class="form-control selectpage"
                   name="row[forte]" type="text" value="{$row.forte|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brief')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-brief" class="form-control" name="row[brief]" rows="5">{$row.brief|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Honor')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-honor" data-rule="" class="form-control" size="50" name="row[honor]" type="text" value="{$row.honor}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-honor" class="btn btn-danger faupload" data-input-id="c-honor" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-honor"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-honor" class="btn btn-primary fachoose" data-input-id="c-honor" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-honor"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-honor"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Certificate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-certificate" data-rule="" class="form-control" size="50" name="row[certificate]" type="text" value="{$row.certificate}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-certificate" class="btn btn-danger faupload" data-input-id="c-certificate" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-certificate"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-certificate" class="btn btn-primary fachoose" data-input-id="c-certificate" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-certificate"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-certificate"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Not_crime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-not_crime" data-rule="" class="form-control" size="50" name="row[not_crime]" type="text" value="{$row.not_crime}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-not_crime" class="btn btn-danger faupload" data-input-id="c-not_crime" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-not_crime"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-not_crime" class="btn btn-primary fachoose" data-input-id="c-not_crime" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-not_crime"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-not_crime"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
